package com.example.springboot_system.utils;


import java.util.UUID;

public class GetId {

    // 随机生成挂号
    public String getRegisterId(){
        String random = UUID.randomUUID().toString();
        String registerId = "R"+random.substring(24,31);
        return registerId;
    }

    // 随机生成挂号
    public String getPrescriptionNum(){
        String random = UUID.randomUUID().toString();
        String prescriptionNum = "O"+random.substring(24,31);
        return prescriptionNum;
    }

}
